package com.xiehao.springbootmybaits.service;

import com.xiehao.springbootmybaits.dao.EmployeeMapper;
import com.xiehao.springbootmybaits.entity.Employee;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EmployeeService {

    @Autowired
    EmployeeMapper employeeMapper;
    public Employee getEmp(Integer empno) {
        return employeeMapper.getOne(empno);
    }
}
